import request from '@/config/http.js'

export function add(data) {
  return request({
    url: 'pgmmanage/pgmlib',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'pgmmanage/pgmlib',
    method: 'put',
    data
  })
}

export function del(ids) {
  return request({
    url: 'pgmmanage/pgmlib',
    method: 'delete',
    data: ids
  })
}

export function playList(params) {
  return request({
    url: 'pgmmanage/pgmplay',
    method: 'get',
    params
  })
}

export function playListAdd(data) {
  return request({
    url: 'pgmmanage/pgmplay',
    method: 'post',
    data
  })
}

export function playListEdit(data) {
  return request({
    url: 'pgmmanage/pgmplay',
    method: 'put',
    data
  })
}

export function playListDel(ids) {
  return request({
    url: 'pgmmanage/pgmplay',
    method: 'delete',
    data: ids
  })
}

export default { add, edit, del, playList, playListAdd, playListEdit, playListDel }
